<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\GoodsSnapshot
 *
 * @property int $id 自增id
 * @property int $goods_id 商品id
 * @property string|null $ssn 商品货号
 * @property string|null $name 商品名称
 * @property string|null $goods_spu_name 商品规格名称
 * @property float $m_price 市场价格
 * @property float $s_price 销售价格
 * @property int $thumb_id 商品缩略图
 * @property string|null $info 商品信息描述
 * @property int $sale_count 销售数量
 * @property string|null $type common:常规商品;integral:积分商品,group:团购商品
 * @property int $exchange_integral 兑换积分
 * @property int $integral 购买商品获得的积分
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsSnapshot onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereExchangeIntegral($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereGoodsSpuName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereInfo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereIntegral($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereMPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereSPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereSaleCount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereSsn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereThumbId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\GoodsSnapshot whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsSnapshot withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\GoodsSnapshot withoutTrashed()
 * @mixin \Eloquent
 */
class GoodsSnapshot extends Model
{
    protected $table = 'goods_snapshot';
    use SoftDeletes;
}
